/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *																					 *
 * Copyright (c) 2003-2006 by AG-Software											 *
 * All Rights Reserved.																 *
 *																					 *
 * You should have received a copy of the AG-Software Shared Source License			 *
 * along with this library; if not, email gnauck@ag-software.de to request a copy.   *
 *																					 *
 * For general enquiries, email gnauck@ag-software.de or visit our website at:		 *
 * http://www.ag-software.de														 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

using System;

using agsXMPP.Xml.Dom;


namespace agsXMPP.protocol
{
	// <stream:error>Invalid handshake</stream:error>
	// <stream:error>Socket override by another connection.</stream:error>

	/// <summary>
	/// Stream Errors &lt;stream:error&gt;
	/// </summary>
	public class Error : Element
	{
		public Error()
		{
			this.TagName	= "error";
			this.Namespace	= Uri.STREAM;			
		}

		public Error(string msg) : this()
		{
			Message = msg;
		}

		/// <summary>
		/// The error Description
		/// </summary>
		public string Message
		{
			get	{ return this.Value;  }
			set	{ this.Value = value; }
		}

	}
}
